<script>
  export default {
    created() {
      console.log('$route:',this.$route);
      const { params, query } = this.$route;
      console.log('params:',params,'\nquery:',query);
      const { path } = params;
      console.log('path:',path);
      this.$router.replace({ path: '/' + path, query });
    },
    render: function(h) {
      console.log('h函数:',h);
      return h(); // avoid warning message
    }
  };
</script>
